package com.tyj.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tyj.common.utils.PageUtils;
import com.tyj.gulimall.product.entity.AttrGroupEntity;
import com.tyj.gulimall.product.vo.AttrGroupWithAttrsVo;
import com.tyj.gulimall.product.vo.web.SkuItemVo;
import com.tyj.gulimall.product.vo.web.SpuItemBaseAttrGroupVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author tanyoujie
 * @email 983629093@qq.com
 * @date 2021-02-09 19:09:40
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    List<AttrGroupWithAttrsVo> getAttrGroupWithAttrsByCatelogId(Long catelogId);

    /**
     * 查询当前spu对应的所以有属性
     * @param spuId
     * @return
     */
    List<SpuItemBaseAttrGroupVo> getAttrGroupWithAttrsBySpuId(Long spuId, Long catalogId);
}

